package de.tum.in.eist.poll.client;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Representation of an abstract user.
 */
public abstract class User implements IsSerializable {
	
	/**
	 * The user's unique name.
	 */
	private String name;
	
	/**
	 * The user's password.
	 */
	private String password;
	
	/**
	 * Default zero-argument constructor.
	 */
	public User() {
	}
	
	/**
	 * @param name {@link #name}
	 * @param password {@link #password}
	 */
	public User(String name, String password) {
		this.name = name;
		this.password = password;
	}
	
	/**
	 * @return the {@link #name}.
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * @return the {@link #password}.
	 */
	public String getPassword() {
		return password;
	}
	
}
